package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.domain.Travel;
import cn.wolfcode.luowowo.query.TravelQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 旅游日记业务接口
 */
public interface ITravelService {

    /**
     * 根据id查询旅游日记信息
     *
     * @param id
     * @return
     */
    Travel get(String id);

    //旅游日记分页查询
    Page<Travel> list(TravelQuery qo);
    //新增
    void save(Travel travel);
    //编辑
    void update(Travel travel);
    //修改状态
    void changeState(String id, int state);

    List<Strategy> viewnumTop3(String destId);
}

